package tag17_01_08.frame;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class Thema2_ComponentesAndLayout {

	public static void main(String[] args) {

		JFrame frame = new JFrame();
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.setBounds(100, 200, 600, 150);
		
		
		JButton b1 = new JButton("Button Center");
		frame.add(b1); //bei dem Borderlayout -> im Zentrum
		
		JButton b2 = new JButton("Button Links");
		frame.add(b2, BorderLayout.WEST);
		
		JButton b3 = new JButton("Button Unten");
		frame.add(b3, BorderLayout.SOUTH);
		
		JButton b4 = new JButton("Button Oben");
		frame.add(b4, BorderLayout.NORTH);
		
		
		frame.setVisible(true);
		
		//templates definiert
		//windows - preferences - suchen per "templates" - editor/templates
		//-  
		
		
		
		
	}// end of main
	
}
